package udpTest;

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetSocketAddress;

public class Client {

	public static void main(String[] args) throws Exception {
		DatagramSocket socket = new DatagramSocket(9999);

		byte[] data = "hello world".getBytes();
		DatagramPacket packet = new DatagramPacket(data, 0, data.length, new InetSocketAddress("localhost", 8888));

		socket.send(packet);

		socket.close();
		
		
	}

}
